/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2022-09-30
 * Time: 10:49
 */
class Resume{
    private String name;
    private String sex;
    private int age;

    public String getName() {
        return name;
    }

    public String getSex() {
        return sex;
    }

    public int getAge() {
        return age;
    }

    public Resume(String name, String sex, int age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }
    void introduce(){
        System.out.println("姓名："+getName());
        System.out.println("性别："+getSex());
        System.out.println("年龄："+getAge());
    }


}
public class Test4 {
    public static void main(String[] args) {
        Resume r = new Resume("李四","男",20);
        r.introduce();
    }
}
